#ifndef LINE_H
#define LINE_H

#include <QGraphicsLineItem>

class Line : public QGraphicsLineItem{

public:
    Line(qreal x1, qreal y1, qreal x2, qreal y2);
    void setStart(qreal nx1,qreal ny1);
    void setEnd(qreal nx2, qreal ny2);
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
    QPointF* m_start;
    QPointF* m_end;

};

#endif // LINE_H
